<template>
    <div class="container">
        <div class="login-wrapper">
            <div class="header">智慧监控平台</div>
            <el-form :model="form" ref="formRef" rules="formRules" label-width="50px">
                <!-- 用户名 -->
                <el-form-item label prop="user" style="width:100%" class="item">
                    <el-input type="text" v-model="form.user"></el-input>
                </el-form-item>
                <div style="height: 20px;"></div>
                <!-- 密&nbsp;&nbsp;&nbsp;码 -->
                <el-form-item label prop="pwd" style="width:100%" class="item-1">
                    <el-input type="password" v-model="form.pwd"></el-input>
                </el-form-item>
                <div style="height: 5px;"></div>
            </el-form>
            <div class="form-wrapper">
                <div>
                    <input type="checkbox" class="item-2" />
                    <span>记住密码</span>
                </div>

                <!-- <input type="text" name="username" placeholder="username" class="input-item" />
                <input type="password" name="password" placeholder="password" class="input-item" />-->
                <div class="btn">登 陆</div>
            </div>
            <!-- <div class="msg">
                Don't have account?
                <a href="#">Sign up</a>
            </div>-->
        </div>
    </div>
</template>

<script>
export default {
    components: {},
    data() {
        return {
            form: {
                user: "",
                name: "",
            },
        };
    },
    mounted() { },
    beforeUnmount() { },
    methods: {},
};
</script>


<style lang="less" scoped>
.container {
    width: 100%;
    height: 100%;
    color: #fff;
    // background-image: linear-gradient(to right, #fbc2eb, #a6c1ee);
    background: url("../assets/img/bj.jpg") no-repeat;
}

.login-wrapper {
    background-image: linear-gradient(
        135deg,
        rgba(60, 140, 231, 0.3) 10%,
        rgba(0, 234, 255, 0.3) 100%
    ); //#3C8CE7-->60,140,231   #00EAFF-->0,234,255
    width: 500px;
    height: 500px;
    border-radius: 15px;
    padding: 0 50px;
    position: relative;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.header {
    font-size: 40px;
    font-weight: bold;
    text-align: center;
    line-height: 200px;
}

.input-item {
    display: block;
    width: 100%;
    margin-bottom: 20px;
    border: 0;
    padding: 10px;
    border-bottom: 1px solid rgb(128, 125, 125);
    font-size: 15px;
    outline: none;
}

.input-item:placeholder {
    text-transform: uppercase;
}

.btn {
    text-align: center;
    font-weight: 700;
    padding: 10px;
    width: 100%;
    margin-top: 40px;
    border-radius: 5px;
    background-image: linear-gradient(
        to top,
        rgba(111, 134, 214, 0.5) 0%,
        rgba(0, 91, 234, 0.5) 100%
    ); //72,198,239   111,134,214

    &:hover {
      background-image: linear-gradient(to top, #48c6ef 0%, #6f86d6 100%);
    }
}

.msg {
    text-align: center;
    line-height: 88px;
}

a {
    text-decoration-line: none;
    color: #abc1ee;
}

/deep/ .el-form-item__label {
    font-size: 1.2rem;
    color: #fff;
}

/deep/ .el-input__inner {
    background-color: transparent;
    border-bottom: 1px solid #fff;
    border-radius: 0;
    color: #fff;
}

.item {
    background: url("../assets/img/user.png") no-repeat;
    background-size: 30px 30px;
    background-position: 10px 10px;
}

.item-1 {
    background: url("../assets/img/pwd.png") no-repeat;
    background-size: 30px 30px;
    background-position: 10px 10px;
}

.form-wrapper {
    text-align: center;

    &>div:first-child{
        input{
            position: relative;
            top:2px
        };
        span{
            font-size: 10px;
            margin-left: 10px;
        }
    }
    
}
</style>
